import pyautogui as pa
import time

pa.moveTo(267, 223)
time.sleep(1)
# 鼠标按住
pa.mouseDown()
pa.moveTo(462, 250, duration=1)
# 抬起
pa.mouseUp()
